<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/2
 * Time: 12:01
 */
//    header("content-type:text/html; charset=utf-8");
    session_start();
    if (isset($_SESSION['user'])){
        header("Location: ./admin.php");
        exit;
    };
        header("Location: ./login.php");
        exit;